#ifndef BUTTON_H
#define BUTTON_H

#include <QPushButton>

class Button : public QPushButton
{
    Q_OBJECT;

public:
    Button(QWidget * parent);

    QSize sizeHint();

    void paintEvent(QPaintEvent *);

public:
    enum DrawnItem {none = 0, cross, toe};
    void setDrawItem(DrawnItem draw_item);
    const DrawnItem getDrawItem() const;

private:
    DrawnItem my_draw_item;

private slots:
    void click();

signals:
    void buttonclick(Button *);
    void stateChanged();
};

#endif // BUTTON_H
